
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="xms">
    <meta name="author" content="Xms">
    <link rel="icon" href="/content/favicon.ico">

    <title>数据列表</title>

    <!-- Bootstrap core CSS -->
    <link href="/content/css/bootstrap3.3.5/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/content/css/font-awesome.min.css" rel="stylesheet">
    <link href="/content/css/common.css" rel="stylesheet">
    <link href="/content/js/jquery-toast/jquery.toast.min.css" rel="stylesheet">
    <link id="themeLink" href="/content/css/theme/default.css" rel="stylesheet" />
    <!-- Bootstrap core JavaScript ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/content/js/jquery.min.js"></script>
    <script src="/content/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="/content/js/ie10-viewport-bug-workaround.js"></script>
    <script src="/content/js/jquery.bootstrap.min.js"></script>
    <script src="/content/js/json2.js"></script>
    <script src="/content/js/xms.utility.js"></script>
    <script src="/content/js/commonlabels.js"></script>
    <script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.core.js"></script>
    <script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.widget.js"></script>
    <script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.mouse.js"></script>
    <script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.draggable.js"></script>
    <script src="/content/js/jquery-toast/jquery.toast.min.js"></script>
    <script src="/content/js/xms.jquery.js"></script>
    <script src="/content/js/xms.web.js"></script>
    <script src="/content/js/common/pagecontext.js"></script>
    <script src="/api/user/usercontext"></script>
    <script>
    jQuery(function () {
        Xms.Web.Loading();
        if (typeof parent !== 'undefined') {
            if (parent != window) {//判断当前页面是否为子页面
                $('body').addClass('xms-subpage');
            }
        }
    });
    function changeTheme(body,themename) {
        $("#themeLink").attr('href', '/content/css/theme/' + themename+'.css');
    }
</script>
    <link href="/content/js/bootstrap-datepicker-1.5.0/css/bootstrap-datepicker3.min.css" rel="stylesheet">
    <link href="/content/js/jquery-ui-1.10.3/themes/base/jquery.ui.all.css" rel="stylesheet">
    <link href="/content/js/grid/pqgrid.dev.css" rel="stylesheet">
    <link href="/content/js/daterangepicker/daterangepicker.css" rel="stylesheet">
    <link href="/content/customize/layui/css/layui.css" rel="stylesheet">
    <link href="/content/js/advancedsearch/advancedsearch.css" rel="stylesheet" />
    <style>
        .breadcrumb {
            display: none;
        }
        /*.layui-table-header{ overflow:initial;}*/
    </style>
    <style>
        body {
            padding-top: 0;
        }
    </style>
</head>

<body data-spy="scroll" data-target="#myScrollspy">
<div class="container-fluid" id="body">
    <div class="row">
        <div class="shadeBox" style="background-color:#000000; opacity:0.5;width:100%;position:absolute;z-index:10;display:none;"></div>
        <div class="col-md-12" id="main" style="margin-bottom:80px;">
            <div><br class="breadcrumb" /></div>
            <div id="content"></div>
            <div class="page-render-wrap">
                <!--main-->

                <div class="page-view-content">

                    <div class="page-view-header" id="queryviewButtons">
                    </div>
                    <div id="entityCreateSection" class="entityCreateSection">
                        <div class="entityCreateSection-close">x</div>
                        <iframe width="100%" src="" id="entityCreateIframe" class="ifrmae-list" name="entityCreateIframe" frameborder="0" scrolling="auto" height="114" style="height:100%;"></iframe>
                    </div>

                    <div class="margin-bottom" style="padding-top:10px;padding-top:5px;background-color: #FBFFFD;">
                        <div class="container-fluid  form-inline">
                            <div class="custom-form-group row">
                                <div class="custom-input-ctrl col-xs-3  col-sm-3" style="margin-top:6px; min-width:175px;">
                                    <a id="viewDropdown" class="dropdown-toggle btn btn-info btn-sm viewDropdown-btn" data-toggle="dropdown" title="" href="#">
                                        <span class="glyphicon glyphicon-th"></span> <span class="selecter-label"></span> <span class="caret"></span>
                                    </a>
                                    <ul class="dropdown-menu" id="viewSelector" data-isenabled="1"></ul>
                                    <div class="btn-group list-align-style hide" id="listAlignStyle" role="group" aria-label="切换显示方式">
                                        <span type="button" id="listAlignTop" data-type="top" class="btn "><em class="glyphicon glyphicon-object-align-top"></em></span>
                                        <span type="button" id="listAlignLeft" data-type="left" class="btn active"><em class="glyphicon glyphicon-object-align-left"></em></span>
                                    </div>
                                </div>
                                <div class="custom-input-ctrl col-xs-8  col-sm-8 custom-input-change date-filter-section pull-right" style="min-width:455px;">
                                    <div class="custom-btn-group" style="min-width:356px;">
                                        <div class="btn-group btn-group-sm pull-right" id="dayfilters">

                                            <button type="button" title="高级查找" class="btn btn-default" onclick="advancedSearchOpen()" style="border-radius:0; border-left:none; border-right:none;"> <span class="glyphicon glyphicon-search"></span> </button>

                                            <button type="button" class="btn btn-default hide" id="queryCalendarBtn" style="border-right:none;"> <span class="glyphicon glyphicon-calendar"></span> </button>
                                            <input type="hidden" id="querycalendar" value="" />
                                            <button type="button" title="刷新" class="btn btn-default" onclick="rebind()"><span class="glyphicon glyphicon-refresh"></span></button>
                                            <button type="button" title="列设置" class="btn btn-default queryview-setting hide" onclick="$('#queryview-settingModal').modal('show')"><span class="glyphicon glyphicon-th-list"></span></button>
                                            <button type="button" title="图表" class="btn btn-default xms-slider-ctrl hide"><span class="glyphicon glyphicon-object-align-bottom"></span></button>
                                            <button type="button" title="视图设置" class="btn btn-default admin-visible" onclick="Xms.Web.OpenWindow('/xms/customize/queryview/edit?id='+Xms.Page.PageContext.QueryId)"><span class="glyphicon glyphicon-cog"></span></button>
                                        </div>
                                    </div>

                                    <div class="custom-input-ctrl custom-input-hide filter-section pull-right">
                                        <form action="/xms/entity/gridview" id="searchForm" method="post" class="form-inline">
                                            <input id="EntityId" name="EntityId" type="hidden" value="" />
                                            <input id="QueryViewId" name="QueryViewId" type="hidden" value="" />
                                            <input id="EntityName" name="EntityName" type="hidden" value="Customer" />
                                            <input id="SortBy" name="SortBy" type="hidden" value="CreatedOn" />
                                            <input data-val="true" data-val-required="The SortDirection field is required." id="SortDirection" name="SortDirection" type="hidden" value="1" />
                                            <input type="hidden" value="1" name="page" />
                                            <input type="hidden" name="QField" id="QField" />
                                            <div class="xms-form-dropdown row xms-formDropDown">
                                                <div class="col-sm-12">
                                                    <div class="btn-group">
                                                        <div class="btn btn-default btn-sm xms-formDownInput " style="width:85px;border-radius:4px 0 0 4px;" title="过滤"><span class="glyphicon glyphicon-filter"></span> 过滤</div><span class="caret" style="position: absolute;right: 10px;top: 50%;z-index:9;"></span>
                                                    </div>
                                                    <div class="xms-formDropDown-List container-fluid" id="searchFormSearch" style="width:336px; padding:10px;">
                                                        <div style="max-height:350px;overflow-x:hidden;overflow-y:auto;" id="searchFormSearchItems">
                                                        </div>
                                                        <div class="row text-center">
                                                            <div class="col-sm-12">
                                                                <div class="btn btn-default btn-sm event-bind" data-eventname="page_common_formSearcher.closeSearchC"><span class="glyphicon glyphicon-ban-circle"></span> 取消</div>
                                                                <div class="btn btn-default btn-sm event-bind" data-eventname="page_common_formSearcher.clearSearchFiler"><span class="glyphicon glyphicon-remove-sign"></span> 清空</div>
                                                                <div class="btn btn-info btn-sm event-bind" id="searchFilterListBtn" data-eventname="page_common_formSearcher.closeSearchForm"><span class="glyphicon glyphicon-ok-sign"></span> 确定</div>
                                                                <button type="reset" name="resetBtn" class="hide"></button>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="xms-gridview-section" class="xms-gridview-section  ">
                        <div class="xms-table-navtree" id="xms-table-navtree">
                        </div>
                        <div class="pos_re " style="width:100%;">
                            <div class="data-grid-box" id="datatable" data-refresh="closeIframeRebind">
                                <div class="datagrid-view" id="dataGridView"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="xms-fixed-slider clearfix">
                    <div class="fl">
                    </div>
                    <div class="fl">
                        <div class="menu-wrap menu-md menu-right" style="background:#fff;">
                            <div class="tableResize-item tableResize-ctrl" style="position: absolute; height: 400px; right: 296px; width: 10px;" id="drag"></div>
                            <div class="xms-slider-right" style="">
                                <div class="xms-slider-header">
                                    <div class="btn-toolbar" role="toolbar" aria-label="">
                                        <div class="btn-group" role="button" aria-label="" title="图表"><em id="listchartWinBtn" class="glyphicon glyphicon-resize-horizontal"></em></div>
                                        <div class="btn-group" role="group" aria-label=""></div>
                                        <div class="btn-group" role="group" aria-label=""></div>
                                    </div>
                                    <div class="col-sm-12 row" style="padding: 0; margin: 0;">
                                        <select id="ChartList" class="form-control"></select>
                                    </div>
                                </div>
                                <div class="xms-slider-content" style="margin-top:0px;" id="viewCharts">
                                </div>
                                <div class="xms-slider-footer">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="tools-modal" id="groupsInserModal">
                    <div class="tools-modal-dialog">
                        <div class="tools-modal-content">
                            <div class="tools-modal-header">
                                <button type="button" class="close" data-dismiss="modal">
                                    <span class="m-close-btn" aria-hidden="true" onclick="$(this).parents('.tools-modal').removeClass('active')">×</span>
                                    <span class="sr-only">Close</span>
                                </button>
                                <h4 class="tools-modal-title"><span class="glyphicon glyphicon-th"></span> 向下钻取</h4>
                            </div>
                            <div class="tools-modal-body">
                                <div class="form-group">
                                    <div class="row">
                                        <div class="col-sm-4"><label>字段</label></div>
                                        <div class="col-sm-8"><select class="groups-attributes tools-modal-control" id="groupsAttributes"></select></div>
                                    </div>
                                </div>
                            </div>
                            <div class="tools-modal-footer">
                                <button type="button" class="btn btn-primary m-accept-btn btn-xs" id="groupsAttributesBtn">钻取</button>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="modal fade" id="queryview-settingModal">
                    <div class="modal-dialog queryview-setting-modal-dialog">
                        <div class="queryview-setting-modal-content modal-content">
                            <div class="queryview-setting-modal-header modal-header">
                                <button type="button" class="close" data-dismiss="modal">
                                    <span class="m-close-btn" aria-hidden="true" onclick="$(this).parents('.tools-modal').removeClass('active')">×</span>
                                    <span class="sr-only">Close</span>
                                </button>
                                <h4 class="tools-modal-title"><span class="glyphicon glyphicon-th"></span> 编辑显示字段</h4>
                            </div>
                            <div class="modal-body">
                                <div id="querySettingWrap" class="row">
                                    <div class="col-sm-5 mult-select-wrap">
                                        <h5>隐藏字段</h5>
                                        <div class="mult-select-innerbox" id="querySettingWrapHide"></div>
                                    </div>
                                    <div class="col-sm-2" id="">
                                        <div class="text-center" style="margin-top:80px;"><button class="btn btn-sm btn-default" id="queryviewLeftCtrl"><em class="glyphicon glyphicon-arrow-right"></em></button></div>
                                        <div class="text-center"><button class="btn btn-sm btn-default" id="queryviewRightCtrl"><em class="glyphicon glyphicon-arrow-left"></em></button></div>
                                    </div>
                                    <div class="col-sm-5 mult-select-wrap">
                                        <h5>显示字段</h5>
                                        <div class="mult-select-innerbox" id="querySettingWrapShow"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-primary m-accept-btn btn-sm" id="queryviewSettingConfirmBtn">确定</button>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <nav class="navbar navbar-default navbar-fixed-bottom hide" role="navigation" id="body-footer">
                <div class="container">
                    <div class="navbar-form navbar-right" id="body-footer-content">
                    </div>
                </div>
            </nav>
        </div>
    </div>
</div>


<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.core.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.widget.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.button.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.mouse.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.autocomplete.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.draggable.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.droppable.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.resizable.js"></script>
<script src="/content/js/jquery-ui-1.10.3/ui/jquery.ui.tooltip.js"></script>
<script src="/content/js/grid/pqgrid.dev.js"></script>
<script src="/content/js/grid/localize/pq-localize-zh.js"></script>
<script src="/content/js/jquery.bootpag.min.js"></script>
<script src="/content/js/jquery.form.js"></script>
<script src="/content/js/jquery.tableresize.js"></script>
<script src="/content/js/bootstrap-datepicker-1.5.0/js/bootstrap-datepicker.min.js"></script>
<script src="/content/js/bootstrap-datepicker-1.5.0/locales/bootstrap-datepicker.zh-CN.min.js" charset="UTF-8"></script>
<script src="/content/js/xms.js"></script>
<script src="/content/js/fetch.js"></script>
<script src="/content/js/jquery.tmpl.min.js"></script>
<script src="/content/js/jquery-validate/jquery.validate.min.js"></script>
<script src="/content/js/jquery.printTable.js"></script>
<script src="/content/js/daterangepicker/moment.min.js"></script>
<script src="/content/js/daterangepicker/daterangepicker.js"></script>
<script src="/content/customize/js/flowdesign/jquery.contextmenu.r2.js"></script>
<script src="/content/js/clipboard.min.js"></script>

<script>

    if (typeof Xms === 'undefined') {
        Xms = {};

    }
    if (typeof Xms.Fetch === 'undefined') {
        Xms.Fetch = {};
    }
    Xms.Fetch.ConditionOperatorLabel = $.extend({}, Xms.Fetch,{
        Equal: '等于',
        NotEqual: '不等于',
        GreaterThan: '大于',
        LessThan: '小于',
        GreaterEqual: '大于等于',
        LessEqual: '小于等于',
        Like: '包含',
        NotLike: '不包含',
        In: '包含',
        NotIn: '不包含',
        Between: '介于',
        NotBetween: '不介于',
        Null: '不包含数据',
        NotNull: '包含数据',
        Yesterday: '昨天',
        Today: '今天',
        Tomorrow: '',
        Last7Days: '往前7天',
        Next7Days: '往后7天',
        LastWeek: '上周',
        ThisWeek: '本周',
        NextWeek: '下周',
        LastMonth: '上个月',
        ThisMonth: '本月',
        NextMonth: '下个月',
        On: '等于',
        OnOrBefore: '早于(包含当天)',
        OnOrAfter: '晚于(包含当天)',
        LastYear: '去年',
        ThisYear: '今年',
        NextYear: '明年',
        LastXHours: '最近X小时',
        NextXHours: '往后X小时',
        LastXDays: '最近X天',
        NextXDays: '往后X天',
        LastXWeeks: '最近X周',
        NextXWeeks: '往后X周',
        LastXMonths: '最近X个月',
        NextXMonths: '往后X个月',
        LastXYears: '最近X年',
        NextXYears: '往后X年',
        EqualUserId: '等于当前用户',
        NotEqualUserId: '不等于当前用户',
        EqualBusinessId: '等于当前部门',
        NotEqualBusinessId: '不等于当前部门',
        ChildOf: '下属',
        Mask: '',
        NotMask: '',
        MasksSelect: '',
        Contains: '包含',
        DoesNotContain: '不包含',
        EqualUserLanguage: '等于当前用户语言',
        NotOn: '不等于',
        OlderThanXYears: 'X年以前',
        OlderThanXMonths: 'X个月以前',
        OlderThanXDays: 'X天以前',
        AfterXYears: 'X年以后',
        AfterXMonths: 'X个月以后',
        AfterXDays: 'X天以后',
        BeginsWith: '开头等于',
        DoesNotBeginWith: '开头不等于',
        EndsWith: '结尾等于',
        DoesNotEndWith: '结尾不等于',
        ThisFiscalYear: '当前会计年度',
        ThisFiscalPeriod: '当前会计期间',
        NextFiscalYear: '下一会计年度',
        NextFiscalPeriod: '下一会计期间',
        LastFiscalYear: '上一会计年度',
        LastFiscalPeriod: '上一会计期间',
        LastXFiscalYears: '过去X个会计年度',
        LastXFiscalPeriods: '过去X个会计期间',
        NextXFiscalYears: '往后X个会计期间',
        NextXFiscalPeriods: '往后X个会计期间',
        InFiscalYear: '在会计年度内',
        InFiscalPeriod: '在会计期间内',
        InFiscalPeriodAndYear: '在会计期间及年度内',
        InOrBeforeFiscalPeriodAndYear: '在会计期间及年度之前',
        InOrAfterFiscalPeriodAndYear: '在会计期间及年度之后',
        EqualUserTeams: '当前用户团队'
    });
</script>
<script>
    //必须放在filters.js之前，页面导出按钮需要
    if (typeof filters !== 'undefined') {
        var filters = {}
    }
    var model = $.urlParamObj(location.href);
    var pageUrl = '/xms/entity/GridView?entityname=' + model.entityname;
    var queryid = model.queryviewid;
    var entityname = model.entityname;
    var entityid = '';
    var pageDefaultPageSize = '10';
</script>
<script src="/content/customize/js/flowdesign/jquery.jsPlumb-1.4.0-all.js"></script>
<script src="/content/js/cdatagrid.js"></script>
<script src="/content/js/common/charts.js"></script>
<script src="/content/js/common/formsearcher.js"></script>
<script src="/content/js/common/list.filters.js"></script>
<script src="/content/js/common/navtree.js"></script>
<script src="/content/js/pages/entity.list.js"></script>

<script src="/content/js/common/filters.js"></script>
<script src="/content/js/advancedsearch/advancedsearch.js"></script>
<script src="/content/js/pages/flowline.js"></script>
<script src="/content/js/html2canvas.js"></script>
<script src="/content/js/canvg.js"></script>
<script>
    var gridview_filters = new XmsFilter();
    filters = pageFilter.getFilters();
    pageWrap_list.init();
    $(function(){
        if(CURRENT_USER.issuperadmin)
            $('.admin-visible').removeClass('hide');
        else
            $('.admin-visible').addClass('hide');
    });
</script>

</body>
</html>